package GroupName.Project_1;


import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;

import org.jvnet.substance.SubstanceLookAndFeel;
import org.jvnet.substance.border.FlatBorderPainter;
import org.jvnet.substance.border.StandardBorderPainter;
import org.jvnet.substance.button.ClassicButtonShaper;
import org.jvnet.substance.button.StandardButtonShaper;
import org.jvnet.substance.painter.StandardGradientPainter;
import org.jvnet.substance.skin.EmeraldDuskSkin;
import org.jvnet.substance.skin.SubstanceBusinessBlackSteelLookAndFeel;
import org.jvnet.substance.skin.SubstanceNebulaLookAndFeel;
import org.jvnet.substance.theme.SubstanceBottleGreenTheme;
import org.jvnet.substance.theme.SubstanceTerracottaTheme;
import org.jvnet.substance.theme.SubstanceTintTheme;
import org.jvnet.substance.watermark.SubstanceBubblesWatermark;
import org.jvnet.substance.watermark.SubstanceStripeWatermark;

import com.jtattoo.plaf.mcwin.McWinButtonUI;
import com.jtattoo.plaf.mcwin.McWinLookAndFeel;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFileChooser;

import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.awt.event.ActionEvent;
import java.awt.Color;
import javax.swing.JSlider;
import java.awt.Font;
import javax.swing.JTextField;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.FormSpecs;
import com.jgoodies.forms.layout.RowSpec;
import javax.swing.JProgressBar;
import javax.swing.JList;
import javax.swing.JOptionPane;
import java.awt.Toolkit;
import java.awt.Window.Type;
import java.awt.Dialog.ModalExclusionType;

public class MainUi extends JFrame {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	private JTextField screatvideoField;
	private JTextField screattextField_1;
	private JTextField videopathtextField;
	private JTextField bitcount;
	private JTextField outsecret_textField;
	private JTextField secretvideo_extField;
	private JProgressBar progressBar;
	private Process p;
	private Process p1;
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					JFrame.setDefaultLookAndFeelDecorated(true); 
					try { 
					    UIManager.setLookAndFeel(new SubstanceBusinessBlackSteelLookAndFeel());  
		                               JFrame.setDefaultLookAndFeelDecorated(true);  
		                               //设置主题   
		                               SubstanceLookAndFeel.setCurrentTheme(new SubstanceBottleGreenTheme());  
		                               //设置按钮外观  
		                               SubstanceLookAndFeel.setCurrentButtonShaper(new StandardButtonShaper()); //设置水印  
		                               //SubstanceLookAndFeel.setCurrentWatermark(new SubstanceStripeWatermark());  
		                               //设置边框  
		                              // SubstanceLookAndFeel.setCurrentBorderPainter(new StandardBorderPainter());  
		                               //设置渐变渲染  
		                               SubstanceLookAndFeel.setCurrentGradientPainter(new StandardGradientPainter());  
		                               //设置标题  
		                              // SubstanceLookAndFeel.setCurrentTitlePainter(new MatteHeaderPainter());    
		                               } 
					catch (UnsupportedLookAndFeelException e)
					{ // TODO Auto-generated catch block 
						//e.printStackTrace(); 
					}		
					 MainUi frame = new MainUi();
					 frame.setVisible(true);
					 frame.setTitle("视频水印系统");
					 frame.setResizable(false);
					 
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public MainUi() {
		setResizable(false);
		setTitle("视频水印系统");
		setIconImage(Toolkit.getDefaultToolkit().getImage(".\\exe\\titile.png"));
	    	setBounds(100, 100, 1000, 618);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5,10, 10));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		JPanel panel_4 = new JPanel();
		panel_4.setBounds(0, 495, 960, 75);
		contentPane.add(panel_4);
		panel_4.setLayout(null);
		
		progressBar= new JProgressBar();
		progressBar.setStringPainted(true);// 设置进度条上的字符串显示，false则不能显示 
		
		progressBar.setBounds(30, 30, 920, 33);
		panel_4.add(progressBar);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBounds(418, 6, 375, 85);
		contentPane.add(panel_1);
		panel_1.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("视频水印系统");
		lblNewLabel.setFont(new Font("隶书", Font.BOLD, 40));
		lblNewLabel.setBounds(0, 6, 262, 82);
		panel_1.add(lblNewLabel);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBounds(10, 143, 452, 202);
		contentPane.add(panel_2);
		panel_2.setLayout(null);
		
		JLabel lblNewLabel_1 = new JLabel("选择原始视频：");
		lblNewLabel_1.setFont(new Font("楷体", Font.BOLD, 16));
		lblNewLabel_1.setBounds(10, 45, 119, 26);
		panel_2.add(lblNewLabel_1);
		
		JLabel label = new JLabel("选择水印文件：");
		label.setFont(new Font("楷体", Font.BOLD, 16));
		label.setBounds(10, 81, 119, 26);
		panel_2.add(label);
		
		JLabel label_1 = new JLabel("设置输出视频：");
		label_1.setFont(new Font("楷体", Font.BOLD, 16));
		label_1.setBounds(10, 118, 119, 26);
		panel_2.add(label_1);
		
		screatvideoField = new JTextField();
		screatvideoField.setFont(new Font("宋体", Font.BOLD, 14));
		screatvideoField.setColumns(10);
		screatvideoField.setBounds(134, 119, 264, 26);
		panel_2.add(screatvideoField);
		
		screattextField_1 = new JTextField();
		screattextField_1.setFont(new Font("宋体", Font.BOLD, 14));
		screattextField_1.setColumns(10);
		screattextField_1.setBounds(134, 81, 264, 26);
		panel_2.add(screattextField_1);
		
		videopathtextField = new JTextField();
		videopathtextField.setFont(new Font("宋体", Font.BOLD, 14));
		videopathtextField.setColumns(10);
		videopathtextField.setBounds(134, 45, 264, 26);
		panel_2.add(videopathtextField);
		
		JButton videofile_button = new JButton();
		videofile_button.setIcon(new ImageIcon(".\\exe\\timg.jpg"));
		videofile_button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			    JFileChooser jfc=new JFileChooser();  
			        jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES );
			        jfc.showDialog(new JLabel(), "选择");  
			        File file=jfc.getSelectedFile();
					//File cf = jfc.getSelectedFile();
					   	String newTxt=null;
						newTxt=file.getAbsolutePath();
						videopathtextField.setText(newTxt);
				
			}
		});
		videofile_button.setBounds(404, 45, 42, 26);
		panel_2.add(videofile_button);
		
		JButton secretfile_button = new JButton();
		secretfile_button.setIcon(new ImageIcon("C:\\Users\\Administrator\\workspace\\Project_1\\exe\\timg.jpg"));
		secretfile_button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			    EventQueue.invokeLater(new Runnable() {
				public void run() {
					 new Thread(){  
                            public void run(){  
                            	try {
        							JFileChooser jfc=new JFileChooser();  
        					        jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES );
        					        jfc.showDialog(new JLabel(), "选择");  
        					        File file=jfc.getSelectedFile();
        							//File cf = jfc.getSelectedFile();
        							 if(file.isDirectory()){  
        						            System.out.println("文件夹:"+file.getAbsolutePath());  
        						        }else if(file.isFile()){  
        						            System.out.println("文件:"+file.getAbsolutePath());  
        						        } 
        							 
        						        System.out.println(jfc.getSelectedFile().getName());  
        								String newTxt=null;
        								newTxt=file.getAbsolutePath();
        								screattextField_1.setText(newTxt);
        						} catch (Exception e) {
        							e.printStackTrace();
        						}
				            }  
				        }.start();
					
				}
			});
			}
		});
		secretfile_button.setBounds(404, 81, 42, 26);
		panel_2.add(secretfile_button);
		
		JButton outfile_button = new JButton();
		outfile_button.setIcon(new ImageIcon("C:\\Users\\Administrator\\workspace\\Project_1\\exe\\timg.jpg"));
		outfile_button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			    JFileChooser jfc=new JFileChooser();  
			        jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES );
			        jfc.showDialog(new JLabel(), "选择");  
			        File file=jfc.getSelectedFile();
					//File cf = jfc.getSelectedFile();
					 if(file.isDirectory()){  
				            System.out.println("文件夹:"+file.getAbsolutePath());  
				        }else if(file.isFile()){  
				            System.out.println("文件:"+file.getAbsolutePath());  
				        } 
					 
				        System.out.println(jfc.getSelectedFile().getName());  
						String newTxt=null;
						newTxt=file.getAbsolutePath();
						screatvideoField.setText(newTxt);
			}
		});
		outfile_button.setBounds(404, 118, 42, 26);
		panel_2.add(outfile_button);
		
		JButton button = new JButton();
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			    if(videopathtextField.getText().equals("")||screattextField_1.getText().equals("")||screatvideoField.getText().equals("")){
				JOptionPane.showMessageDialog(null, "文件路径不能为空。", "消息提示", JOptionPane.ERROR_MESSAGE); 	//return false;
			    }else{
				 new Thread(new Runnable(){
					public void run() {
						String videoPath = videopathtextField.getText();
						String secertPath = screattextField_1.getText();
						String outfilesecertvideoPath=screatvideoField.getText();
						String cmd = String.format("%s %s %s %s", "exe/self/robust.exe emb", videoPath, secertPath, outfilesecertvideoPath);
						try {
							p = Runtime.getRuntime().exec(cmd, null, new File("exe/self/"));
							BufferedReader stdout = new BufferedReader(new InputStreamReader(p.getInputStream()));
							String line = null;
							int lineCnt = 0;
							while ((line = stdout.readLine()) != null) {
								System.out.println(line);
								final int count = lineCnt++;
								EventQueue.invokeLater(new Runnable() {
									public void run() {
										System.out.println(progressBar.getValue());
										progressBar.setMaximum(205);
										progressBar.setValue(count);
										if(count==205){
											JOptionPane.showMessageDialog(null, "嵌入完成!", "消息提示", JOptionPane.ERROR_MESSAGE); 	//return false;
											   
										}
									}
								});
							}
							stdout.close();
						} catch (IOException e) {e.printStackTrace();}
					}
				}).start();
			    }
			   
			}
		});
		button.setText("嵌入水印");
		button.setFont(new Font("楷体", Font.BOLD, 16));
		button.setBounds(10, 155, 179, 37);
		panel_2.add(button);
		
		JLabel label_6 = new JLabel("水印嵌入区域");
		label_6.setFont(new Font("隶书", Font.BOLD, 20));
		label_6.setBounds(10, 0, 131, 36);
		panel_2.add(label_6);
		
		JButton btnyuv = new JButton();
		btnyuv.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			    p.destroyForcibly();
			    progressBar.setValue(0);
			}
		});
		btnyuv.setText("取消");
		btnyuv.setFont(new Font("楷体", Font.BOLD, 16));
		btnyuv.setBounds(258, 155, 188, 37);
		panel_2.add(btnyuv);
		
		JPanel panel_5 = new JPanel();
		panel_5.setBounds(10, 355, 448, 104);
		contentPane.add(panel_5);
		panel_5.setLayout(null);
		
		JLabel label_5 = new JLabel("格式转化区域");
		label_5.setFont(new Font("隶书", Font.BOLD, 20));
		label_5.setBounds(10, 10, 132, 26);
		panel_5.add(label_5);
		
		JButton button_3 = new JButton();
		button_3.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				 new Thread(){  
		                     public void run(){  
		                    	 Runtime mt =Runtime.getRuntime();
		                    	 File  myfile =new File(".\\exe\\FormatFactory","FormatFactory.exe");
		                    	 try {
									mt.exec(myfile.getAbsolutePath());
								} catch (IOException e) {
									// TODO Auto-generated catch block
									e.printStackTrace();
								}
					            }  
					        }.start();
			}
		});
		button_3.setText("进行格式转化");
		button_3.setFont(new Font("楷体", Font.BOLD, 16));
		button_3.setBounds(10, 48, 174, 37);
		panel_5.add(button_3);
		
		JButton button_6 = new JButton();
		button_6.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			    new Thread(){  
		                     public void run(){  
		                    	 Runtime mt =Runtime.getRuntime();
		                    	 File  myfile =new File(".\\exe\\QQPlayer","QQPlayer.exe");
		                    	 try {
									mt.exec(myfile.getAbsolutePath());
								} catch (IOException e) {
									// TODO Auto-generated catch block
									e.printStackTrace();
								}
					            }  
					        }.start();
			}
		});
		button_6.setText("打开转化后视频");
		button_6.setFont(new Font("楷体", Font.BOLD, 16));
		button_6.setBounds(258, 46, 190, 37);
		panel_5.add(button_6);
		
		JPanel panel_3 = new JPanel();
		panel_3.setLayout(null);
		panel_3.setBounds(472, 143, 488, 202);
		contentPane.add(panel_3);
		
		JLabel label_2 = new JLabel("选择水印视频：");
		label_2.setFont(new Font("楷体", Font.BOLD, 16));
		label_2.setBounds(10, 48, 119, 26);
		panel_3.add(label_2);
		
		JLabel label_3 = new JLabel("设置输出水印文件：");
		label_3.setFont(new Font("楷体", Font.BOLD, 16));
		label_3.setBounds(10, 84, 153, 26);
		panel_3.add(label_3);
		
		JLabel lblbit = new JLabel("输出水印Bit数：");
		lblbit.setFont(new Font("楷体", Font.BOLD, 16));
		lblbit.setBounds(10, 121, 129, 26);
		panel_3.add(lblbit);
		
		bitcount = new JTextField();
		bitcount.setFont(new Font("宋体", Font.BOLD, 14));
		bitcount.setColumns(10);
		bitcount.setBounds(140, 122, 97, 26);
		panel_3.add(bitcount);
		
		outsecret_textField = new JTextField();
		outsecret_textField.setFont(new Font("宋体", Font.BOLD, 14));
		outsecret_textField.setColumns(10);
		outsecret_textField.setBounds(161, 84, 269, 26);
		panel_3.add(outsecret_textField);
		
		secretvideo_extField = new JTextField();
		secretvideo_extField.setFont(new Font("宋体", Font.BOLD, 14));
		secretvideo_extField.setColumns(10);
		secretvideo_extField.setBounds(129, 48, 301, 26);
		panel_3.add(secretvideo_extField);
		
		JButton button_1 = new JButton();
		button_1.setIcon(new ImageIcon("C:\\Users\\Administrator\\workspace\\Project_1\\exe\\timg.jpg"));
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			    EventQueue.invokeLater(new Runnable() {
				public void run() {
					 new Thread(){  
                            public void run(){  
                            	try {
        							JFileChooser jfc=new JFileChooser();  
        					        jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES );
        					        jfc.showDialog(new JLabel(), "选择");  
        					        File file=jfc.getSelectedFile();
        							//File cf = jfc.getSelectedFile();
        							 if(file.isDirectory()){  
        						            System.out.println("文件夹:"+file.getAbsolutePath());  
        						        }else if(file.isFile()){  
        						            System.out.println("文件:"+file.getAbsolutePath());  
        						        } 
        							 
        						        System.out.println(jfc.getSelectedFile().getName());  
        								String newTxt=null;
        								newTxt=file.getAbsolutePath();
        								secretvideo_extField.setText(newTxt);
        						} catch (Exception e) {
        							e.printStackTrace();
        						}
				            }  
				        }.start();
					
				}
			});
			}
		});
		button_1.setBounds(436, 48, 42, 26);
		panel_3.add(button_1);
		
		JButton button_2 = new JButton();
		button_2.setIcon(new ImageIcon(".\\exe\\timg.jpg"));
		button_2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			    JFileChooser jfc=new JFileChooser();  
			        jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES );
			        jfc.showDialog(new JLabel(), "选择");  
			        File file=jfc.getSelectedFile();
					//File cf = jfc.getSelectedFile();
					 if(file.isDirectory()){  
				            System.out.println("文件夹:"+file.getAbsolutePath());  
				        }else if(file.isFile()){  
				            System.out.println("文件:"+file.getAbsolutePath());  
				        } 
					 
				        System.out.println(jfc.getSelectedFile().getName());  
						String newTxt=null;
						newTxt=file.getAbsolutePath();
						outsecret_textField.setText(newTxt);
			}
		});
		button_2.setBounds(436, 84, 42, 26);
		panel_3.add(button_2);
		
		JLabel label_8 = new JLabel("水印提取区域");
		label_8.setFont(new Font("隶书", Font.BOLD, 20));
		label_8.setBounds(10, 0, 129, 36);
		panel_3.add(label_8);
		
		JLabel lblBit = new JLabel("Bit");
		lblBit.setFont(new Font("楷体", Font.BOLD, 16));
		lblBit.setBounds(247, 121, 27, 26);
		panel_3.add(lblBit);
		
		JButton button_7 = new JButton();
		button_7.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			    if(secretvideo_extField.getText().equals("")||outsecret_textField.getText().equals("")||bitcount.getText().equals("")){
				JOptionPane.showMessageDialog(null, "文件路径不能为空。", "消息提示", JOptionPane.ERROR_MESSAGE); 	//return false;
			    }else{
				new Thread(new Runnable() {
					public void run() {
						String videoPath = secretvideo_extField.getText();
						String bitLength = bitcount.getText();
						String outsecret = outsecret_textField.getText();
						String cmd = String.format("%s %s %s %s", "exe/self/robust.exe ext", videoPath,outsecret, bitLength);
						try {
							p1 = Runtime.getRuntime().exec(cmd, null, new File("exe/self/"));
							BufferedReader stdout = new BufferedReader(new InputStreamReader(p1.getInputStream()));
							String line = null;
							int lineCnt = 0;
							while ((line = stdout.readLine()) != null) {
							    System.out.println(line);
							   final int count = lineCnt++;
								EventQueue.invokeLater(new Runnable() {
									public void run() {
									    System.out.println(count);
									  	progressBar.setMaximum(300);
										progressBar.setValue(count);
										if(count==106){
											JOptionPane.showMessageDialog(null, "提取完成!", "消息提示", JOptionPane.ERROR_MESSAGE); 	//return false;
										}
									}
								});
							}
							stdout.close();
						} catch (IOException e) {e.printStackTrace();}
					}
				}).start();
			    }
			}
		});
		button_7.setText("提取水印");
		button_7.setFont(new Font("楷体", Font.BOLD, 16));
		button_7.setBounds(10, 157, 206, 37);
		panel_3.add(button_7);
		
		JButton button_8 = new JButton();
		button_8.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			    p1.destroyForcibly();
			    progressBar.setValue(0);
			}
		});
		button_8.setText("取消");
		button_8.setFont(new Font("楷体", Font.BOLD, 16));
		button_8.setBounds(272, 157, 206, 37);
		panel_3.add(button_8);
		
		JLabel label_4 = new JLabel("进度：");
		label_4.setFont(new Font("楷体", Font.BOLD, 16));
		label_4.setBounds(20, 0, 139, 32);
		panel_4.add(label_4);
		JPanel panel_6 = new JPanel();
		panel_6.setLayout(null);
		panel_6.setBounds(468, 355, 492, 130);
		contentPane.add(panel_6);
		
		JLabel label_7 = new JLabel("效果验证区域");
		label_7.setFont(new Font("隶书", Font.BOLD, 20));
		label_7.setBounds(10, 10, 132, 26);
		panel_6.add(label_7);
		
		JButton button_4 = new JButton();
		button_4.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			    String cmd = "cmd /C"+screattextField_1.getText();
			        Process p;
			        try {
			            p = Runtime.getRuntime().exec(cmd);
			        } catch (Exception e) {
			            e.printStackTrace();
			        }
			}
		});
		button_4.setText("打开原始水印文件");
		button_4.setFont(new Font("楷体", Font.BOLD, 16));
		button_4.setBounds(10, 46, 192, 37);
		panel_6.add(button_4);
		
		JButton button_5 = new JButton();
		button_5.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			    String cmd = "cmd /C"+outsecret_textField.getText();
			        Process p;
			        try {
			            p = Runtime.getRuntime().exec(cmd);
			        } catch (Exception e1) {
			            e1.printStackTrace();
			        }
			}
		});
		button_5.setText("打开提取后水印文件");
		button_5.setFont(new Font("楷体", Font.BOLD, 16));
		button_5.setBounds(10, 93, 192, 37);
		panel_6.add(button_5);
		
		JButton button_9 = new JButton();
		button_9.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			    new Thread(){  
		                    public void run(){  
		                   	 Runtime mt =Runtime.getRuntime();
		                   	 File  myfile =new File(".\\exe\\ElecardStreamEyeTools","pyuv.exe");
		                   	 try {
									mt.exec(myfile.getAbsolutePath());
								} catch (IOException e) {
									// TODO Auto-generated catch block
									e.printStackTrace();
								}
					            }  
					        }.start();	
			}
		});
		button_9.setText("打开YUV文件");
		button_9.setFont(new Font("楷体", Font.BOLD, 16));
		button_9.setBounds(290, 93, 192, 37);
		panel_6.add(button_9);
		
		JButton button_10 = new JButton();
		button_10.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			    new Thread(){  
		                     public void run(){  
		                    	 Runtime mt =Runtime.getRuntime();
		                    	 File  myfile =new File(".\\exe\\QQPlayer","QQPlayer.exe");
		                    	 try {
									mt.exec(myfile.getAbsolutePath());
								} catch (IOException e) {
									// TODO Auto-generated catch block
									e.printStackTrace();
								}
					            }  
					        }.start();
			}
		});
		button_10.setText("打开嵌水印后视频");
		button_10.setFont(new Font("楷体", Font.BOLD, 16));
		button_10.setBounds(290, 46, 192, 37);
		panel_6.add(button_10);
		
		JPanel panel = new JPanel();
		panel.setBounds(0, 6, 413, 142);
		contentPane.add(panel);
		panel.setLayout(null);
		String path=".\\exe\\title.jpg";
		ImageIcon background = new ImageIcon(path);  
		JLabel lblNewLabel_2 = new JLabel(background);
		lblNewLabel_2.setBounds(0, 0, 407, 136);
		panel.add(lblNewLabel_2);
		//setResizable(false);
	}
}
